import request from '@/utils/request.js'

export function getFollow(data){
	return request({
		url:'/info/follow/user/'+data,
		method:'get',
	})
}

export function follow(data){
	if(data.isAuthorLike != 1){
		return request({
			url:'/info/follow/user/' + data.authorName,
			method:'post',
		})
	} else{
		return request({
			url:'/info/follow/user/'+data.authorName,
			method:'delete',
		})
	}
	
}